package com.hj.tools.xml;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("BizContent")
public class FireCompanyInfoBean {
	@XStreamAlias("srcID")
	private String srcID;
	@XStreamAlias("TIMESTAMP")
	private String timestamp;
	@XStreamAlias("operateMode")
	private String operateMode;
	@XStreamAlias("FireCompanyInfoList")
	private FireCompanyInfoList fireCompanyInfoList;

	public String getSrcID() {
		return srcID;
	}

	public void setSrcID(String srcID) {
		this.srcID = srcID;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getOperateMode() {
		return operateMode;
	}

	public void setOperateMode(String operateMode) {
		this.operateMode = operateMode;
	}

	public FireCompanyInfoList getFireCompanyInfoList() {
		return fireCompanyInfoList;
	}

	public void setFireCompanyInfoList(FireCompanyInfoList fireCompanyInfoList) {
		this.fireCompanyInfoList = fireCompanyInfoList;
	}

	public static class FireCompanyInfoList {
		@XStreamImplicit(itemFieldName = "FireCompanyInfo")
		private List<FireCompanyInfo> FireCompanyInfo;

		public List<FireCompanyInfo> getFireCompanyInfo() {
			return FireCompanyInfo;
		}

		public void setFireCompanyInfo(List<FireCompanyInfo> fireCompanyInfo) {
			FireCompanyInfo = fireCompanyInfo;
		}

	}

	//测试同一标签下循环某一对象
	public static class FireCompanyInfo {
		@XStreamAlias("orgID")
		private String orgID;
		@XStreamAlias("companyNo")
		private String companyNo;
		@XStreamAlias("companyName")
		private String companyName;
		@XStreamAlias("syscodeList")
		private SyscodeList syscodeList;
		@XStreamAlias("fireCompanyTypeList")
		private FireCompanyTypeList fireCompanyTypeList;

		public String getOrgID() {
			return orgID;
		}

		public void setOrgID(String orgID) {
			this.orgID = orgID;
		}

		public String getCompanyNo() {
			return companyNo;
		}

		public void setCompanyNo(String companyNo) {
			this.companyNo = companyNo;
		}

		public String getCompanyName() {
			return companyName;
		}

		public void setCompanyName(String companyName) {
			this.companyName = companyName;
		}

		public SyscodeList getSyscodeList() {
			return syscodeList;
		}

		public void setSyscodeList(SyscodeList syscodeList) {
			this.syscodeList = syscodeList;
		}

		public FireCompanyTypeList getFireCompanyTypeList() {
			return fireCompanyTypeList;
		}

		public void setFireCompanyTypeList(FireCompanyTypeList fireCompanyTypeList) {
			this.fireCompanyTypeList = fireCompanyTypeList;
		}
	}

	public static class SyscodeList {
		@XStreamImplicit(itemFieldName = "syscode")
		private List<Syscode> syscode;

		public List<Syscode> getSyscode() {
			return syscode;
		}

		public void setSyscode(List<Syscode> syscode) {
			this.syscode = syscode;
		}

	}

	//测试同一标签下循环某一对象
	public static class Syscode {
		@XStreamAlias("codetype")
		private String codeType;
		@XStreamAlias("code")
		private String code;

		public String getCodeType() {
			return codeType;
		}

		public void setCodeType(String codeType) {
			this.codeType = codeType;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}
	}

	public static class FireCompanyTypeList {
		@XStreamImplicit(itemFieldName = "fireCompanyType")
		private List<FireCompanyType> fireCompanyType;

		public List<FireCompanyType> getFireCompanyType() {
			return fireCompanyType;
		}

		public void setFireCompanyType(List<FireCompanyType> fireCompanyType) {
			this.fireCompanyType = fireCompanyType;
		}

	}

	//测试同一标签下循环某一对象
	public static class FireCompanyType {
		@XStreamAlias("code")
		private String code;

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}
	}
}
